class FallingStarFireB extends SRMeleeFire;

var() array<name> FireAnims;

simulated event ModeDoFire()
{
    local int AnimToPlay;

    if(FireAnims.length > 0)
    {
        AnimToPlay = rand(FireAnims.length);
        FireAnim = FireAnims[AnimToPlay];
    }

    Super.ModeDoFire();

}

function AfflictTarget(Actor MyTarget, float Damage, Vector HitLocation, Vector Momentum, class<DamageType> DamageType)
{
	local FallingStarSlowingProj Proj;
	
	if ( KFMonster(MyTarget) != none )
	{
		KFMonster(MyTarget).PlayDirectionalHit(HitLocation);
	}

	Super.AfflictTarget(MyTarget,Damage,HitLocation,Momentum,DamageType);
	
	if ( DKMonster(MyTarget) != none )
	{
		if ( Pawn(MyTarget).Health > 0 )
		{
			Proj = Spawn(Class'FallingStarSlowingProj');
			Proj.Stick(KFMonster(MyTarget),HitLocation);
			Proj.Lifespan = MyTarget.GetAnimDuration('KnockDown') + 1.05 + 2.25;
		}
	}
}

defaultproperties
{
    ProxySize=0.150000
    DamagedelayMin = 1.12
    DamagedelayMax = 1.12
    HitEffectClass=Class'KFMod.AxeHitEffect'
    MeleeHitSoundRefs(0)="KF_ClaymoreSnd.Claymore_Impact_Flesh"
    bWaitForRelease=False
    FireAnims(0)="Fire"
    FireAnims(1)="Fire4"

    HitDamageClass = Class'DamTypeFallingStarAltAttack'
    WeaponRange = 120.000000
    DamageConst = 412
    FireRate = 1.350000
	FireAnimRate = 0.67669173
	
    BotRefireRate=1.100000
}
